﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameBase;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace GalaxyPresident
{
    public class Bullet : Ammo
    {
        private static Texture2D _texture = Constant.content.Load<Texture2D>(@"Resources/Ammo/bullet");
        private static Texture2D _ammoEffectTexture = Constant.content.Load<Texture2D>(@"Resources/Ammo/bulletEffect");

        public Bullet(PlanetObjectOwner owner)
            : base(owner)
        {
            sprite = new Sprite(_texture, 1, 1);
            Depth = 0.7f;
            _ammoEffect = new VisibleObject(_ammoEffectTexture, 1, 3);
            _ammoEffect.Sprite.IsPlayOneTime = true;
            _ammoEffect.Sprite.Delay = 40;
            speed = 10f;

            Power = 70f;
        }

        public override Ammo clone()
        {
            return new Bullet(owner);
        }
    }
}
